<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "good_cate".
 *
 * @property int $id
 * @property string $name 分类名称
 * @property string $logo 分类logo
 * @property int $sort 排序(数字越大靠前)
 * @property int $status 状态
 * @property int $created_at 创建时间
 */
class GoodCate extends Base
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'good_cate';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['sort', 'status', 'created_at'], 'integer'],
            [['name', 'logo'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'logo' => 'Logo',
            'sort' => 'Sort',
            'status' => 'Status',
            'created_at' => 'Created At',
        ];
    }
}
